MAINSOURCE = yaxmms2.ui
MAINTARGET = yaxmms2_ui.py

MLIBSOURCE = mlib.ui
MLIBTARGET = mlib_ui.py

PREFIX = ${HOME}/.local

PLAYCONTROLLERSOURCE = playController.ui
PLAYCONTROLLERTARGET = playController_ui.py

TAGGERSOURCE = tagger.ui
TAGGERTARGET = tagger_ui.py

PLAYLISTVIEWSOURCE = playlist.ui
PLAYLISTVIEWTARGET = playlist_ui.py

build:
	mkdir -p ../build/share/yaxmms2
	mkdir -p ../build/bin
	cp playlist.py playlist_ui.py mlib.py mlib_ui.py playController.py playController_ui.py ../build/share/yaxmms2
	chmod a+x ../build/share/yaxmms2/*
	ln -s -f  ../share/yaxmms2/playlist.py ../build/bin/yapl
	ln -s -f  ../share/yaxmms2/mlib.py ../build/bin/yamlib
	ln -s -f  ../share/yaxmms2/playController.py ../build/bin/yaxmms2

install:
	cp -r ../build/* ${PREFIX}/

mainUi:
	pyuic4 ${MAINSOURCE} > ${MAINTARGET}

mlibUi:
	pyuic4 ${MLIBSOURCE} > ${MLIBTARGET}

playControllerUi:
	pyuic4 ${PLAYCONTROLLERSOURCE} > ${PLAYCONTROLLERTARGET}

playlistViewUi:
	pyuic4 ${PLAYLISTVIEWSOURCE} > ${PLAYLISTVIEWTARGET}

taggerUi:
	pyuic4 ${TAGGERSOURCE} > ${TAGGERTARGET}

